package com.shujia.connectionPool;

import java.sql.Connection;
import java.util.Date;

public class PoolElem {
    // 这是Connection的包装类

    private Connection connection;

    // 创建时间
    private Date date;

    public Connection getConnection() {
        return connection;
    }

    public Date getDate() {
        return date;
    }

    public PoolElem(Connection connection, Date date) {
        this.connection = connection;
        this.date = date;
    }
}
